extracted paket.references to constants
removing memoize function, using flattened lookup