put get-dnodes into separate class