support for more than one module when switching modules/clock