add send_reply(req,type)