added a JSON config file
changed the server to use the config file