parsing message and writing it back