added protractor handling