fix unit stderr communication