fix nodespaces/gatefunctions for good