fix PUT/GET methods