fixed bug with multple msg strings in sendto method