fixes the problem with the output of the commands being printed, can just use the facter api for it