split processes version working moderately well