improving tag saving so it preserves pre-existing tags