bug fixes in wsgi router