optionally dump memory directly