temp buffer of 256 wasn't long enough, extended to 1024