add checkFiles()
oops, restore commented out calls