working out errors in the routes for reason