change here to use `build_type_enum`, must cast as interim measure