added bzero for cleanin buffer in thread