added cancel all and replace api's