added support for subpath prefix for wsgi implementations