cosmetic changes, stack trace for history errors