improved connection
connection doesn't work properly