small fixes before selenium