fixed post and put requests