history plugin (not complete)