0.1.40
global vars and middleware