some changes in selenium mode