add break point resume function