prevent code from searching file system for the package file multiple times