added support for PUT and DELETE