simplifying route parsing/generation