added ability to specify selector