added better functionality on managing processes