config event add function