added optional exceptions and continuations problems