use send_data in send_smap
simplify