added line reporting facility to error - however this is only of limited usability. line reporting is complicated...