fixed selection to detect things other than base