fixing route arguments and paths