very rough draft for algorithm to update the current possible api calls