keep references to classes consistent