added support for OPTIONS requests