prevent warning when file cannot be opened