made the put work with states
[#18]
made the post work with states
[#18]