handling of reflected message by gateway