use conn to create client