added NodeInstance
fix warnings