GR|ET: moved setting file properties into write call