refactor: add new method "run" and check if the current module is main