complete file copies before calling fn