fixed config loading