adapted to github api