making some progress on opening files