adding initial support for copying objects.