rewrite smartreflex control

Signed-off-by: Grarak <williye97@gmail.com>