check if location is uri, remove constructor
update example