it seems like shellcheck complains about this but once the order of '>' and '2>&1' is reversed, bash does not like it anymore. since making bash happy is way more important than shellcheck, let's revert this part of the change...