updates errors and such