try getting the application rather than the context