Long term dynamics for the restricted N-body problem with mean motion resonances and crossing singularities