might have to rethink yframe as we need to know stack top for marking.