working on getting api to work