add platform determine for ls