use a better api to get memory info