setup script now functions as desired