mistake in call to _get_pid was corrected