added post and put methods