terrible code duplication
copy new file