possible res.end adaption