working around problem with sscanf usage
cleaned up send function and removed some flag settings
match sentences using strncmp