add api calls wrapper and apply