create super class with the file option
move the file loading to the common parent class