rewrote dist2 manager to be more generic and fit all use-cases