fixed loading of files with deprecation notice