fixed redirecting command output to null

did not test the last commit, sorry.