boilerplage for history plugin