sails automation works but is hacky