rename errors to exceptions