set vars at the end of the file