patch/put seems to be working; added more sophisticated logging