fixed online/offline switch