library for in-memory operations