modified csn setup script