adding pid support