passing custom callback behavior to routes fetch