added deep select support