main: add debug to main_params, and use it to filter iv and key output