more tweaking of the flags overhaul. overhauling how we handle api errors to allow for more specificity