implemented pause/resume/step execution