update variables from config