fix for split_data, added CLI