new halo related code and datatypes