added debug mode for nodefile