define API base url at class initialization