add check connection and alog
use alog