set remote callback before push