improved splitting algorithm for BSD-derived Unix operating systems