uses correct api for branch
correctly loading of apis