directoryNodeClient: error handling imlemented; refactored