possibly correct callback functions in routes?