fixed configpath initialization