fixed some post functionalities to be RESTful
merged