add select() func for multi-client