serve history as a hash