move uri resolving out of ctor