added logging, increased buffer size to 3