debugging crossing detection...