add a temporary method to save entities embedded as spans