added xml decoding for incoming messages