refactoring wsgi async content