added autorec enable/disable switch