added store of monitor ports and pids