add only if uri is defined