basic working api client