configurable server and client addresses
refactor and fixed settings application