fixes #3044 reading credentials from settings file