handle vnods, added debug stmts