handle the filehandle like case better