added multiple select support (unstable)