fixes to continuation function