replaced generate_command command
misc