added additional parameter which defines if std streams get redirected to /dev/null or not