fixed config loader