added support for color-code detector