added extra option to split lines