add callback to config