improvde debug logging for module command (show all the output)