connect modules

connect modules and add default in the switch. There we can add some warning.