simplified ensuring setup_handlers() is only called once