start adding halo setup code