new router logic