add build cancellation support