fix pipe communication with messaged