added max unlinked nodes option