added a message when file open fails