added another error handler so we can tell if we are parsing in a var that was not defined