updated write directory