use closures for all routes