update file write case with extensions