better error reporting for enableprog