fix config loader and config defaults