settings can't be NULL here, or we'd have already crashed anyway