switched to using npipe instead of socket