add some check to avoid throw exception if no settings set