rewrite application context section