add during pai
Merge pull request #21 from srethink/add_during_term

add during pai