added monit pid check