working on GET and PUT