updated for removing of scripts so we dont' do duplicate scripts