starting to add file reading stufff
kept an old version