fixed silly multiple files per directory bug