refactor for rf7800str