preparation work for unsafe input/output from MMFs
new files added - missing from previous commit