explict handling of replacing non-files by file resources