added --color option handling compatibility