unify copy-file function
finish converting things to 0-value functions
print message for each function