saving files with non existing directory