file_flush moved to file.utils
TODO updated