finished mark intersection detection; clearer error messages