added functionality to get memory information