also replace vars in uris