rewrite of lirc_command_init