adding ghpulls function and other fixes