interface for memory apis