fetch files only if they are actually required