refactor to modules
dotlog refactored as entry point