- added memoize to common.fs