added error flag with Debug options