added recording handler