packet bugs

fixed bug in request packet length
couple of more packet fixes