add configration loader
add loader code
Refactaring configuration loader