add a function to load configuration