produce seems to work fine need tofigure out problem with consume