add var file generation