change message to file