more work on color handling