get the error stuff straightened out here