update config and patterns