adding more router functionality