automatic configuration script