fix settings ref, add docs