[minor] tidy up route handlers