load config from directory