- cut out some calls by inlining the calls to get_history()