register HandlerFactory in order to custom constructor of the handlers