changed run command to accept lists