converted two-thirds of vanilla.cpp to Attributes