make loading file and directory actually works