better validate .selector and .context