nodeJS could be null here and we might need to guard it