added last zero byte protocol