tweaked MEMORY capture method for non OSX