bug - mode not set - now set to mode = "test"
now 6 modes -