simplify selector parsing