setup for custom handler