exposes stats about memory allocation, fixes #2