offline messages implemented. still need not to sync old messages