patched up the Continue function