fix a slew of errors before bed