add logging + checkOnline timeout