app.context: customize context parameter

see #19. tests haven't been added yet.