fix copying of reference files