added memory stats and commands