add pkg<->class relations