feat: add subkey and dedupe