generate file with warning