bug fixes in main selenium function library