fixing API for concancellation