finally PUT/POST works properly