updated for compatability with meteor 0.5.7 DDP spec