params extraction for sails