refactoring, try to fix zombie processes