get type of node

and allow to execute actions only on recognised types