added base_url to class