the case function is working, but that seems to have broken the splut odule
fixed it by logging the output. not sure that was totally the node way of doing it