corrected handling of gridfsfiles