moved some globals out of Node - made them more global