organize

code organization (core & modules) for future split.