add console control handler