Funcs use session now as a global var