use exception for missing variable definition