micro library to contain interaction with the api