added error reporting for missing goal