correct local variable passing and yaml class name