simplified router logic