modify so that the test command now can write data to output/syslog