mysend code and needed kernel additions