copy properties, not just fields