added basic support for selects