added online/offline checker