improved history string handeling for apply uv