add type scripts to head after revert of revert