updated code to work with latest mean.io stack