added support for toggle_mode
moved init of bank outside