add handleNodes option; closes #3