change patch -> post and json