fixed some issues with the setup script