handles empty history dir