basic NaCL message flow
fixed merge
split up main for nacl verison