organised setup, recording with extraction, and cleanup