set up for custom handler