added settlements stuff that was missing