handle optional actions on triggers