added upgrade script and corrected configuration