allow uri string in constructor