may have impletemented some error handling for github api?