refactor put AllManager in a separate module