problem with raw send function
fix clean exit code