add error handling for Multi.php