implement optional config file loader