selector engine - phase #1

Optimized for the most common cases