some tools code