fix ext scripts