update config and add bean