correct loader for situation when directory can not be listed