filecheck for smarty