moved unknown variable warning to trace