refactor server config file. closes #4