fixes for when we get ints back from apis