r3051: simplified the memory interface