reorganized scripts.php