changed how to find histfile