add keygen to connectorsetting