convert new scripts to old ones (strange hack)
fix: remove bogus code