fixed createOutputStream for Piter