1.remove output parameter
2.only output remote messages to stdout, others and err ouput to stderr