fix for adding contents of directories