fixed comparison and added new resource to monitor