more hacky error stuff