noting is wrong if there are no attributes set. this just makes it prettier, aka not having empty "endpoint "element.