improve memory

Organizing history by tags.