only set callbacks if needed