added memory operations to io