added slug_memstats and tested it