allow custom history length