fixed setup script and configuration loading