added config loader with backsearching