pass values to custom handler