thread.php updated