add resource monitor