fixed getBranches() and getFile methods