upgrade nan