add callback to deal with some signals