little hack to retain access to global Sails object. Should find a better solution for this..