merge and rename files