first round of printf fixes (nw)