added some basic CLI functionality