added version and base_url instance variables