write file option added