add new functions to check new termination/activation processes without memory leak