store base_url to instance variable