rewrote api interaction with github. should work more often now