just before starting loading from files