fix traced_vars bug
write traced_vars debug info
merge