added example for runAp_