append when not there, alter when there