fix bug: parsing output of snap-ls