more info on file handling and inheritance