update code for Meteor apps