accept commands and add program list