list command implementation