fixed #7: moved nvToTree, nvToFolder to nvbase