newer github api logic