api for flash tool