allow more than 1 handler for headers and end events