worked on getting os and saving to file