fixed issue #199, added some enhancements for better info on eval error