support for HandlerFunc