console command handling