updated response-replace
added ping at start