pass option values to callback