seems to be mostly working, but for some reason freaks out on big directories