make compatible with github v3 api