apparent errors in firebase behavior