support xml and json copy