open the file on initialization