add parameters to main() and create raw protocol for no decoding.