add_handler for lambda