improve debugging of module commands being run