added reponse/output recording