add resource monitoring