bunch of refactoring, replaced setup, reworked map ownership and added group system, not done yet