change core class into daemon class, create module trees