add types, update num_conversions, utils and utils_test