add guess from file type for reader and writer