changed sw2 and 3 to start/stop recording to file