=fixed packet size problem
minor changes
added options