added memory usage API