memory workflow