directory loading is broken.
loadDirectory changes.