can now write multiple directories