added has_rel and expand_uri