works for some messages, but the dd need to be fixed