buggy space removal and os detection