update how to get history path