adding support for PUT/DELETE