support for HTTP method overriding, minor changes