bug correction for cli interface