add logger
check input node is null