add slightly more descriptive exception handling
improve exception handling some more
fix handling of anonymous procedures
fix procedure handling again