enum for receive
send now uses enumerations