fixed some route builder bugs