getting some strange errors that don't seem to make sense