refactor: flags collection in root cli