fix bugs and support for uart in nodejs