source code of some tools script