added memory use and threads