modify Spirit classes