solves part of https://github.com/balderdashy/sails/issues/1517