some cleanups for middleend node creation in backends