fixed node-class relation; generated IDs