major slam lib update (squashed commit)