update config and listener