nit: we have been putting `})` and `.then(` on different lines.