build complete script