update for actionFunc and localFunc