fixed issue with loading multiple required files.