use http for assets
add global variables and routes