remove old code for online/offline