added check for seek and tell in wsgi