add mac plantform support for using select