somewhat finished setup.php