added loading from directories