added red splat detector
and other changes