use main branch ID if branch dont have access