src: file creation shoudl be fixed but requires testing