added write_ options to config to match Matlab