reading solid files and making the initial configuration. not robust at all