command line logic added to sercices