refact and generate the backup receiver