fixes #3044 - reading credentials from config file