fixing custom handler example