[ApT] rearranged code
[ApT] added runApT and runApF
[ApT] added runApT_