refactored Config loader/getter