fix the script generating the setup