fixing up monitoring script with both trees