copy firebase object