berry: debug memory update