lib/register: #fix mac check