implemented resume

esc should work now