refactoring console command config