catching errors in flag loading