getting the PUT working and also adding a working ex of resolve
merged