So it works with asking the node type. Will remove the readonly stuff ...