if base_uri is given set it else use default