work on lamp matrix and adding debug modes