magic class associations unified