adding route creation functionality