pass options to callback