add pids management