deprecate preAction.