add handlers and run_handler