cloning callback parameters for safety