add statement fragmetn and work flow