handle put requests synchronously