the API class works but for some reason it does not like to work if
imported from another file....