writing grical reply to file for test reasons