make list command work