update according to http-api