update for config, fix a bug in user api