added history integration; fixes #4