swap online/offline constants