make base uri a paramter