factoring out firebase logic
another message to set external store ref