fixed problem w/ file pointers not being closed => too many opened files error on larger dirs