make sure file.size is set