added support for rotated nodes