fixed bug with cli filenames