first draft using application context