update a little bit ResourceMonitor class