added base_url variable that is global