add win auth, add process exit