changed rest call to something scalable + changed POST to PUT