add json response format and signal file