add option to bind globals on server
more types for route function