add support for continuations