start of some refactoring of FileContainer