added select support

accidentally used master last time >_<