moved file methods from translateslim to fileutils