adding process restart functionality