added RAM monitoring