add generic states for wsgi app