can deal with put request, pending_req function is comment out