code refactor into logical packages
also includes an apparent fix for wifi DNS service