removed def within defn. removed unnescessary read-file functions -- now make use of 'generic dependency