add checking to see if file exists and is readable