working to store failed chat messages so i can try to resend them later