bug fixes for node api