set stackheight before pausing