working outside of application context