add memory interface