moved move_file function to utils