refactored - now use MD5 authentication for Windows compatibility