updated mode, building better gray code scanning tools