added halo management routines