allow call of command.generate twice (may be useful for debugging)