memory_model wrapper that does useful stuff for several personal projects