breakout low level git api calls to api module
add index