add logic handler