Use shared_handler instead of AbstractHandler