fix handling of nonexistant sections and keys - oops