added demod switch