uri resolving using more sophisticated interface.