merge get with getOrGenerate. Closes #74. Fixes #76 Fixes #77 Fixes #78.