defer app initialization to first request