NT_Q_DIR encapsulation improved
minor changes to NT_Q_DIR