add branch parameter to speed up cloning