allow base_url to be set through config