added callback to routes