converted console output to msgQueue