rework selenium connection