changed to virtual functions in in_memory.h