adapt to aloha_nic api change