moving files array creation to before base constructor call