Should also register the handlers server-side.