removing extra scripts being generated