define variables before version check