compatibility for ls < 1.0.3