new CLI args structure, new log format and some fixes