added config loader and validator