node api, clean up