made RuntimeError wrap in code block