load_historical rewritted from scratch