dont rely on app() from globals