use wsgi interface
bugfix