fixe problem of lingering processes