fix not reading from config file.