comment added
data reset on new file
sql check before query
pre-close check