setting up monitoring