fixes for showing history counter + minor other updates.