fix destructuring to work with latest sweet