make compatible with color branch of -lib