moved methods from Tools_File to File