replace stub and test scripts