replace lsof usage