added exceptions to calcslope and clclineitersection