added route object, refactored route usage