added a directive to read and pass the contents of a file to a function