cleaned up ssd.php