half implemented loading of files.