resume and stack overflow