some fixes for config setting