implement query string during connection