removed usage of ctx.set_started/stopped