code cleanup
bugfix unused parent-process-id