add some logic handler