update for new memory API
81 files changed