try reading only for file objects