marshall bool for callbacks
allow None for callbacks