added support for select fields with options