resolving #33, fixing a bug in parse_ls_string() in the process