added node support. Different API usage because we have to provide a win...

...dow and I didnt want to break backwards compatibility