added copy method for resource with a new id