check for empty input string in parse_fh(), better errors
get rid of some loops
don't print directory entries unless they have a filehandle