copy_with_ext library