prepare recording in a thread