made some changes to friend online/offline parsing from mobile client