fixed up connection in userlogic