updated for sails 0.10.5 (removed console.log)