nan upgrade, work in progress

segfaulting at the moment