update get/post/delete/put methods