add config and auth factory