working put and delete requests