[wip] refacoring main_main, cOTCli application