added API deadline support