adding check before writing to core file
1 file changed