clarified mock sails code