Adding nodetype field to node classes