working on making code accept different selector engines